<?php
/**
 *@author Connor <caokang@foxmail.com>
 *@todo
 *@link www.zeevin.com
 */
$form=$this->beginWidget('CActiveForm'); 
?>
<?php //echo CHtml::errorSummary($model); ?>
        <style type="text/css">
         .errorMessage{ padding-left:60px; color:#f00}
		</style>
<div class="definition_title">
	<?php echo $form->labelEx($model,'subject');?>
	<?php echo $form->textField($model,'subject',array('size'=>80,'maxlength'=>128)); ?>
    <div class="clear"></div> 
	<?php echo $form->error($model,'subject'); ?>
</div>
<div class="definition_con">
	<?php echo $form->labelEx($model,'content');?>
	<?php echo CHtml::activeTextArea($model,'content',array('rows'=>10, 'cols'=>70)); ?>
    <div class="clear"></div> 
	<?php echo $form->error($model,'content'); ?>
</div>
<div class="definition_sub">
	<?php echo CHtml::submitButton($model->isNewRecord ? '保存' : '修改'); ?>
</div>
<?php $this->endWidget();?>